package com.yyge.controller.admin.sysdicttype.resp;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.yyge.common.annon.DictTypeAnnon;
import com.yyge.common.enums.DictTypeEnum;
import com.yyge.common.vo.req.PageReq;
import com.yyge.util.easyexcel.convert.DictTypeConvert;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


import java.util.Date;

/**
 * @Desc 返回对象
 * @Author: Gityyge
 * @Date: 2023/7/2 20:37:08
 */

@Getter
@Setter
@ToString
@ExcelIgnoreUnannotated
public class SysDictTypeResp  {

    /**
     * 字典的id
     */
    @ExcelProperty(value = "编号")
    private Long id;


    /**
      * 字典名称
      */
    @ExcelProperty(value = "名称")
    private String dictName;

     /**
      * 字典类型
      */
     @ExcelProperty(value = "类型")
      private String dictType;

    /**
     * 状态（0正常 1停用）
     */
    @DictTypeAnnon(value = DictTypeEnum.sys_normal_disable)
    @ExcelProperty(value = "状态", converter = DictTypeConvert.class)
    private String status;

     /**
      * 开始时间
      */
//     @JsonFormat(pattern = )
      @ExcelProperty(value = "创建时间")
      @DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
      // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
      private Date createTime;



     /**
      * 备注
      */
     @ExcelProperty(value = "备注")
      private String remark;
}
